//
//  UIView+IBExtension.m
//  Traveling
//
//  Created by 尹桥印 on 15/6/10.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "UIView+IBExtension.h"

IB_DESIGNABLE
@implementation UIView (IBExtension)



-(void)setBorderWidth:(CGFloat)borderWidth{
    [self.layer setBorderWidth:borderWidth];
    [self.layer setMasksToBounds:YES];
}
-(CGFloat)borderWidth{
    return self.layer.borderWidth;
}


-(void)setCornerRadius:(CGFloat)cornerRadius{
    [self.layer setCornerRadius:cornerRadius];
    [self.layer setMasksToBounds:YES];
}

-(CGFloat)cornerRadius{
    return self.layer.cornerRadius;
}
-(void)setBorderColor:(UIColor *)borderColor{
    [self.layer setBorderColor:borderColor.CGColor];
}

-(UIColor *) borderColor{
    return [UIColor colorWithCGColor:self.layer.borderColor];
}
@end
